"""application URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, include

from common.JWTAuth import CustomTokenObtainSlidingPairView

urlpatterns = [
    path('admin/', admin.site.urls),
    path('api/login', CustomTokenObtainSlidingPairView.as_view(), name='token_obtain_sliding_pair'),
    path('api/system/', include('system.urls')),
    path('api/index/', include('index.urls')),
    path('api/macroIndicator/', include('macro_indicator.urls')),
    path('api/dqjj/', include('dqjj.urls')),
    path('api/hyzb/', include('hyzb.urls')),
    path('api/cyhy/', include('cyhy.urls')),
    path('api/czjr/', include('czjr.urls')),
    path('api/mytz/', include('mytz.urls')),
]
